package com.zbkj.crmeb.payment.vo.hkwechat;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * wepayez 订单退款请求
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="HKPayRefundResponse对象", description="香港支付退款返回对象")
public class HKPayRefundResponse {

    @ApiModelProperty(value = "版本号 默认2.0非必填")
    public String version;

    @ApiModelProperty(value = "字符集 默认UTF-8非必填")
    public String charset;

    @ApiModelProperty(value = "签名类型 默认MD5非必填")
    public String sign_type;

    @ApiModelProperty(value = "返回狀態碼 0 表示成功非 0 表示失敗 此字段是通信標識，非交易 標識，交易是否成功需要查 看 result_code 來判斷")
    private String status;

    @ApiModelProperty(value = "返回資訊，如非空，為錯誤原因簽名失敗參數 格式校驗錯誤")
    private String message;

    @ApiModelProperty(value = "业务结果 0 表示成功非 0 表示失敗")
    private String result_code;

    @ApiModelProperty(value = "商户号")
    private String mch_id;

    @ApiModelProperty(value = "终端设备号")
    private String device_info;

    @ApiModelProperty(value = "随机字符串")
    private String nonce_str;

    @ApiModelProperty(value = "错误代码")
    private String err_code;

    @ApiModelProperty(value = "錯誤代碼描述")
    private String err_msg;

    @ApiModelProperty(value = "簽名")
    private String sign;

    @ApiModelProperty(value = "平台订单号")
    public String transaction_id;

    @ApiModelProperty(value = "商户订单号")
    public String out_trade_no;

    @ApiModelProperty(value = "商戶退款單號")
    public String out_refund_no;

    @ApiModelProperty(value = "平臺退款單號")
    public String refund_id;

    @ApiModelProperty(value = "退款管道 ORIGINAL—原路退款，默認")
    public String refund_channel;

    @ApiModelProperty(value = "退款總金額,單位為分,可以做部分退款")
    public Integer refund_fee;

    @ApiModelProperty(value = "現金券退款金額 : 現金券退款金額 <= 退款金額， 退款金額-現 金券退款金額為現金")
    public Integer coupon_refund_fee;

}
